﻿#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

#define jian_hang 9
#define jian_lie 9
#define jian_hangs jian_hang+2
#define jian_lies jian_lie+2
#define jian_lei 10

void caidan();  //打印菜单

void game();  //扫雷游戏主体

int moshi();  //扫雷模式选择

void jiandan();  //简单模式

void zhunbei(char zhanshi[jian_hangs][jian_lies], char leitu[jian_hangs][jian_lies]);  //准备数组，并初始化

void print(char arr[jian_hangs][jian_lies]);  //打印

void zhadan(char leitu[jian_hangs][jian_lies]);  //布置雷

void zhuti(char zhanshi[jian_hangs][jian_lies], char leitu[jian_hangs][jian_lies]);  //游戏实现

int getnumber(char leitu[jian_hangs][jian_lies], int hang, int lie);  //得到剩余雷数

void kuozhan(char zhanshi[jian_hangs][jian_lies], char leitu[jian_hangs][jian_lies], int hang, int lie,int * win);  //扩展功能